package com.sea.example.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

/**
 * Description:
 * Author: hcxu
 * Time: 2024/9/5 2:05 PM
 */
@RestController
@RequestMapping("/test")
@Slf4j
public class TestController {
    @GetMapping("/getMessage")
    public String test(HttpServletRequest request){
        log.info("接口名称:{}",request.getRequestURL().toString());
        return "测试接口";
    }

}
